using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmTrainingRequest")]
    public class TrainingRequest
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "RequestId", ResourceType = typeof(Resources.TrainingRequestResource))]
        public int RequestId { get; set; }

		[DataMember, Display(Name = "TrainingCurDescr", ResourceType = typeof(Resources.TrainingRequestResource))]
        public string TrainingCurDescr { get; set; }

		[DataMember, Display(Name = "DateTraining", ResourceType = typeof(Resources.TrainingRequestResource))]
        public Nullable<System.DateTime> DateTraining { get; set; }

		[DataMember, Display(Name = "TrainingPlace", ResourceType = typeof(Resources.TrainingRequestResource))]
        public string TrainingPlace { get; set; }

		[DataMember, Display(Name = "TrainingCreate", ResourceType = typeof(Resources.TrainingRequestResource))]
        public string TrainingCreate { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.TrainingRequestResource))]
        public string Remarks { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.TrainingRequestResource))]
        public int EmpId { get; set; }

		[DataMember, Display(Name = "RequestedWhen", ResourceType = typeof(Resources.TrainingRequestResource))]
        public Nullable<System.DateTime> RequestedWhen { get; set; }

		[ForeignKey("Status")]
		[DataMember, Display(Name = "StatusId", ResourceType = typeof(Resources.TrainingRequestResource))]
        public int StatusId { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.TrainingRequestResource))]
        public string UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.TrainingRequestResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.TrainingRequestResource))]
        public string RecordStatus { get; set; }

		public virtual HRM.Employee Emp { get; set; }

		public virtual HRM.DcStatus Status { get; set; }

    }
}